package com.cmhi.base.work;
import com.softmbh.kellyplatform.KellyPlatform;
import com.softmbh.kellyplatform.bean.AccountBean;
import com.softmbh.kellyplatform.bean.BusinessInfoBean;
import com.softmbh.kellyplatform.bean.DeviceUserInfo;
import com.softmbh.kellyplatform.bean.DialogConfigBean;
import com.softmbh.kellyplatform.bean.InforMation;
import com.softmbh.kellyplatform.bean.LicenseBean;
import com.softmbh.kellyplatform.bean.ProvinceConfigInfoBean;
import com.softmbh.kellyplatform.util.LocalDeviceInfo;
import com.yxl.yxlbus.YxlBusManager;

import java.util.List;
import java.util.Map;

public interface ProvinceWork extends KellyPlatform.SoftInerface {
    @Override
    default void onDownloadComplete(Map<String, String> installPackage) {
        KellyPlatform.SoftInerface.super.onDownloadComplete(installPackage);
    }

    @Override
    default void onProvinceInfo(ProvinceConfigInfoBean.DataBean dataBean, LocalDeviceInfo localDeviceInfo) {
        KellyPlatform.SoftInerface.super.onProvinceInfo(dataBean, localDeviceInfo);
    }

    @Override
    default boolean onPreShowErrorDialog(String title, String message, int errorCode) {
        return KellyPlatform.SoftInerface.super.onPreShowErrorDialog(title, message, errorCode);
    }

    @Override
    default void onProgress(String packageName, String apkName, int progress) {
        KellyPlatform.SoftInerface.super.onProgress(packageName, apkName, progress);
    }

    @Override
    default void onBusinessInfo(BusinessInfoBean.DataBean dataBean) {
        KellyPlatform.SoftInerface.super.onBusinessInfo(dataBean);
    }

    @Override
    default void onUserInfoByDevice(DeviceUserInfo.DataBean bean) {
    }

    @Override
    default void onDialogText(String action, DialogConfigBean.DataBean dataBean) {
        KellyPlatform.SoftInerface.super.onDialogText(action, dataBean);
    }

    @Override
    default void onAccountInfo(String backPhone, List<AccountBean> dataBeans) {
        KellyPlatform.SoftInerface.super.onAccountInfo(backPhone, dataBeans);
    }

    @Override
    default void onIcnTvInitResult(boolean isSuccess, InforMation inforMation) {
        KellyPlatform.SoftInerface.super.onIcnTvInitResult(isSuccess, inforMation);
    }

    @Override
    default void onDialogDismiss(String mainTitle, String subTitle, String message, int code, boolean isShowHit, String fBtnText, String sBtnText) {
        KellyPlatform.SoftInerface.super.onDialogDismiss(mainTitle, subTitle, message, code, isShowHit, fBtnText, sBtnText);
    }

    @Override
    default void onGitvAuthResult(boolean isSuccess, InforMation information) {
        KellyPlatform.SoftInerface.super.onGitvAuthResult(isSuccess, information);
    }

    @Override
    default void onLicense(LicenseBean licenseBean) {
        YxlBusManager.getInstance().invokeInterface("onLicense",licenseBean);
    }

    @Override
    default void onConfirmComplete() {

    }

    @Override
    default void onUserContinue(byte b) {

    }

    @Override
    default void onNetStateChange(boolean b) {

    }


    @Override
    default void onMediaCodecLevel(String s) {
        workStep("onMediaCodecLevel",s);
    }

    void workStep(String step, Object object);
}
